import { createApp } from 'vue'
import App from './App.vue'
const app=createApp(App)

// 引入element
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'


// 引入element-icon图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

// 引入vue-router
import router from '@/router'

// 引入样式
import '@/assets/styles/index.scss'

import {createPinia} from 'pinia' 
const pinia = createPinia()
app
.use(router)
.use(pinia)
.use(ElementPlus)
.mount('#app')
